package ua.mihaylenko.game.mahjongg.engine.mjcube 
{
	import away3d.primitives.Cube;
	import flash.geom.Point;
	
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class MJCube extends Cube
	{
		private var _pMPosition:Point;
		private var _xId:int;
		private var _yId:int;
		private var _zId:int;
		private var _sMJId:String;
		public function MJCube(init:Object = null)
		{
			super(init);
		}
		public function setMjId(iX:int, iY:int, iZ:int):void
		{
			_xId = iX;
			_yId = iY;
			_zId = iZ;
		}
		
		public function isNeighbor(_iX:int, _iY:int, _iZ:int):Boolean {
			return Boolean(_iY >= _yId - 1 && _iY <= _yId + 1 && _iX >= _xId - 1 && _iX < _xId + 1 && _iZ >= _zId - 1 && _iZ <= _zId + 1);
		}
		
		public function get xId():int { return _xId; }
		public function set xId(value:int):void{_xId = value;}
		
		public function get yId():int { return _yId; }
		public function set yId(value:int):void{_yId = value;}
		
		public function get zId():int { return _zId; }
		public function set zId(value:int):void {_zId = value;}
	}

}